import axios from 'axios'
const resourceApi = {
    add(param) {
        return axios.post('/system/api/resource/add', param)
    },

    update(param) {
        return axios.put('/system/api/resource/update', param)
    },

    deleteBatch(ids) {
        return axios.delete(`/system/api/resource/deleteBatch?ids=${ids}`)
    },

    selectList(param) {
        return axios.get('/system/api/resource/selectList', { params: param })
    },

    selectById(id) {
        return axios.get(`/system/api/resource/${id}`)
    }
}

export default resourceApi


